package com.ruoyi.transaction.mapper;

import com.ruoyi.transaction.domain.OrderItemTmp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderItemTmpMapper {
    int deleteByPrimaryKey(Integer orderItemId);

    int insert(OrderItemTmp item);

    int batchInsert(@Param("items") List<OrderItemTmp> items);

    int insertSelective(OrderItemTmp record);

    OrderItemTmp selectByPrimaryKey(Integer orderItemId);

    int updateByPrimaryKeySelective(OrderItemTmp record);

    int updateByPrimaryKeyWithBLOBs(OrderItemTmp record);

    int updateByPrimaryKey(OrderItemTmp record);

    int countByExpressCompanyIdAndExpressNo(@Param("express_company_id") Integer expressCompanyId, @Param("express_no") String expressNo);


    List<OrderItemTmp> selectByUserIds(@Param("userIdList") List<Long> userIdList, @Param("orderItemTmp") OrderItemTmp orderItemTmp);

    int deleteByPrimaryKeys(@Param("itemIds") Integer[] itemIds, @Param("userId") Long userId);

    List<OrderItemTmp> selectByUserAndIds(@Param("userId") Long userId, @Param("ids") Integer[] ids);
}